#!/user/bin/env node

async function logger(ctx,next){
  const start = Date.now();
  const end = Date.now();
  console.log(`${ctx.method}${ctx.path} --${start-end}ms`);
  next();
};

module.exports = logger;
